
<div class="dock" id="dock">
	<script type="text/javascript">
	$(function()
		{
			$('#dock').Fisheye(
				{
					maxWidth: 50,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container',
					itemWidth: 40,
					proximity: 90,
					halign : 'center',
					type:'ajax'
				}
			);
			$('.dock-container').fixedMenu();
			
			$(".dock-item").fancybox({

				onStart:function(){
					// loadGeo();
				},
				onComplete:function(){
					//$('#fancybox-content').attr('width','800px'); 
  				}
  				
			});
			//$('#left img').click(function(){
			//	if(facility.zmesh!=null){
			//		alert('ddd');
			//	}
			//});
			

		}
	);
	</script>
  <div class="dock-container">
  <?php	if($wgGoodsType){
			 foreach ($wgGoodsType as $t)
				{
					// $url= $this->createurl('/webgl/showcase/',array('gtId'=>$t->typeName));
					// echo json_encode($t);
?>
  	
  	<?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/dock/".$t->typeName.".png")."<span>".$t->typeName."</span>",
											array('webgl/gallery/','type'=>json_encode($t)),
											array('class'=>"dock-item",'alt'=>$t->typeName))?>
											
  <?php }}?>
  
    	<?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/dock/portfolio.png")."<span>Portfolio</span>",
											array('webgl/uploadGeometry/'),array('class'=>"dock-item",'alt'=>'Portfolio'))?>
      <?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/dock/video.png")."<span>编写户型图</span>",
                      array('webgl/drawHouseStyle/'),array('class'=>"dock-item",'alt'=>'Portfolio'))?>
      <?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/dock/history.png")."<span>导入户型图</span>",
                      array('webgl/showHouseStyle/'),array('class'=>"dock-item",'alt'=>'Portfolio'))?>
  <a class="dock-item2" href="#"><img src="images/dock/video.png" alt="video" id="save"/><span>保存</span></a> 
        <?php echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/images/dock/video.png")."<span>搜索家</span>",
                      array('webgl/showHouse/'),array('class'=>"dock-item",'alt'=>'Portfolio'))?>
  <a class="dock-item2" href="#"><img src="images/dock/history.png" alt="history" /><span>History</span></a> 
  <a class="dock-item2" href="www.sohu.com"><img src="images/dock/calendar.png" alt="calendar" /><span>Calendar</span></a> 
  <a class="dock-item2" href="images/404.jpg"><img src="images/dock/rss.png" alt="rss" /><span>RSS</span></a> 
</div>
</div>